package com.ben.tcptester.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping(value="/")
public class IndexController {

    Logger logger = LoggerFactory.getLogger(IndexController.class);

    @RequestMapping(method= RequestMethod.GET)
    public String hello(Model model) {
        logger.info("hello");
        model.addAttribute("hello", "Welcome to TcpTester.");
        return "index";
    }
}
